<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$n = $this->getNews();
?>
<div class="left">
    <div class="title">
        <i class="icon12-title"></i>
        TIN TỨC <span>SỰ KIỆN</span></div>
    <ul class="nav">
        <?php
        foreach ($n as $k => $value) {
            if ($k == 0) {
                ?>
                <li>
                    <?php
                    echo CHtml::link('<strong>' . $value->name . '</strong>', array('/tin-tuc/' . $value->linkDetailNews . '-' . $value->id . '.html'), array('title' => $value->name));
                    echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl . '/uploads/thumb/' . $value->image, $value->name), array('/tin-tuc/' . $value->linkDetailNews . '-' . $value->id . '.html'), array('title' => $value->name));
                    ?>
                </li>
                <?php
            } else {

                echo '<li>' . CHtml::link($value->name, array('/tin-tuc/' . $value->linkDetailNews . '-' . $value->id . '.html'), array('title' => $value->name)) . '</li>';
            }
        }
        ?>

    </ul>
</div>